package com.knight.jdk8.method.reference;

/**
 * @Description:
 * @author: knight
 * @Date: 2019-04-27 20:44
 */
public class StudentComparator {
    public  int compareStudentByAge(Student student1,Student student2){
        return student1.getAge() - student2.getAge();
    }
}
